<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) 2014 IBM Corporation and others. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="STYLESHEET" href="../../book.css" charset="ISO-8859-1" type="text/css">
<title>Adopting 4.5 mechanisms and APIs</title>
</head>

<body>

<h1>Adopting 4.5 mechanisms and APIs</h1>

<p>
  This section describes changes that are required if you are trying to change
  your 4.4 plug-in to adopt the 4.5 mechanisms and APIs.
</p>

<ol>
	<li><a href="#getAdapter">IAdaptable#getAdapter(Class) has been generified</a></li>
</ol>

<hr>

<!-- ############################################## -->
<h2>1. <a name="getAdapter">IAdaptable#getAdapter(Class) has been generified</a></h2>
<p><strong>What is affected:</strong> Clients that refer to org.eclipse.core.runtime.IAdaptable#getAdapter(Class&lt;T&gt;).
</p>
<p><strong>Description:</strong>
Callers and implementers of <code>org.eclipse.core.runtime.IAdaptable#getAdapter(Class&lt;T&gt;)</code>
can see compile errors or warnings when trying to compile against org.eclipse.equinox.common 3.7.0.
</p>
<p><strong>Action required:</strong>
If your Bundle-RequiredExecutionEnvironment is J2SE-1.5 or later, update the lower bound of the Require-Bundle/Import-Package
that provides or re-exports the org.eclipse.core.runtime package to the latest version, and then generify your implementations
of getAdapter(Class) and fix remaining compile problems (unnecessary casts, etc.).
See <a href="https://bugs.eclipse.org/442021#c25">Bug 442021</a>.
</p>


</body>
</html>
